<template>
  <div class="app-container">
	  YYY
	  <br />
	  user：{{userinfo}}
	  <br />
  </div>
	
</template>

<script setup name="Test">
import { getToken } from "@/utils/auth";
import request from '@/utils/request'

import useUserStore from "@/store/modules/user";
const userStore = useUserStore();

const userinfo = reactive({
  token: userStore.token,
  id: userStore.id,
  name: userStore.name,
  avatar: userStore.avatar,
  roles: userStore.roles,
  permissions: userStore.permissions
});	
	
function getTest() {
	  return request({
	    url: '/tc/test',
	    method: 'get',
	    params: ''
	  })
};
function test(){
	getTest().then(res => {
	  console.log(res)
	});
}
test();
</script>

<style>
</style>